package com.yuanchu.goods.utils;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * @version: 1.0
 * @Author: adan
 * @description: 解析json数据
 * @Modified By:
 * @date: 2023-12-23 17:57
 */
@Data
public class JsonGroupValue {
    public class Group {
        @JsonProperty("name")
        private String name;

        @JsonProperty("id")
        private int id;

        // Getters and setters
    }

    public class Value {
        @JsonProperty("name")
        private String name;

        @JsonProperty("id")
        private int id;

        // Getters and setters
    }

    @JsonProperty("group")
    private Group group;

    @JsonProperty("value")
    private Value value;
}
